package com.gxa.modules.payment.service.impl;

import com.gxa.modules.payment.entity.MeterDetails;
import com.gxa.modules.payment.form.MeterDetailsForm;
import com.gxa.modules.payment.mapper.MeterDetailsFormMapper;
import com.gxa.modules.payment.mapper.MeterDetailsMapper;
import com.gxa.modules.payment.service.MeterDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MeterDetailsServiceImpl implements MeterDetailsService {

    @Autowired
    private MeterDetailsMapper meterDetailsMapper;

    @Autowired
    private MeterDetailsFormMapper meterDetailsFormMapper;

    @Override
    public List<MeterDetails> queryByPage(Map<String, Object> params) {
        List<MeterDetails> meterDetails = this.meterDetailsMapper.queryByPage(params);
        return meterDetails;
    }

    @Override
    public void MeterDetailsDelete(List<Integer> ids) {
        this.meterDetailsMapper.MeterDetailsDelete(ids);
    }

    @Override
    public List<MeterDetailsForm> queryById(Integer id) {
        List<MeterDetailsForm> meterDetailsForms = this.meterDetailsFormMapper.queryById(id);
        return meterDetailsForms;
    }
}
